FROM redis:4.0.11

COPY ./conf /tmp/conf/
RUN mkdir -p /etc/redis
RUN mv /tmp/conf/*.conf /etc/redis/
RUN chown redis:redis /etc/redis/redis.conf
RUN rm -rf /tmp/conf
ENTRYPOINT ["redis-server","/etc/redis/redis.conf","--appendonly", "yes"]